import { createStackNavigator } from '@react-navigation/stack';
import Home from '../src/page/Home/Home';
import Product from '../src/page/Product/Product';
import ShoppingCart from '../src/page/ShoppingCart/ShoppingCart';
import Mine from '../src/page/Mine/Mine';
import Login from '../src/Login/Login';
import Demo from '../src/page/Demo/Index';

const Stack = createStackNavigator();

  // stack路由配置
  export default function Navigation(){
    return (
        <Stack.Navigator>
            <Stack.Screen name={"Login"} component={Login} />
            <Stack.Screen name={"Product"} component={Product} />
            <Stack.Screen name={"ShoppingCart"} component={ShoppingCart} />
            <Stack.Screen name={"Mine"} component={Mine} />
            <Stack.Screen name={"Home"} component={Home} />
            <Stack.Screen name={"Demo"} component={Demo} options={{
                headerShown:false
            }} />
        </Stack.Navigator>
    )
}
